package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.dto.SpuDetailDTO;
import com.leyou.item.entity.Spu;
import com.leyou.item.entity.SpuDetail;


public interface SpuService extends IService<Spu> {
    PageDTO listSpuByPage(Long bid, Long cid, Long spuid, Integer page, Integer rows, Boolean isSaleable);

    void addSpu(SpuDTO spuDTO);

    SpuDetailDTO querySpuDetailBySpuId(Long spuId);

    SpuDTO getSpuById(Long id);

    SpuDTO getSpuOnlyById(Long id);

    void updateSaleable(Long id, Boolean saleable);

    void updateSpu(SpuDTO spuDTO);
}
